<style>
    .XH-Form-Node label{
        width: 70px;
    }
    .XH-Form-Node .form-inline{
        margin-top: 5px;
        margin-bottom: 5px;
    }
    .tree-view-menu-list a{
        cursor:pointer;
    }
    .XH-Tree-View-Icon a{
        float: left;
    }
    .XH-Tree-View-Icon li,ul{
        clear: both;
    }
    .XH-Tree-View-Icon a + i{
        margin-top: 12px;
        cursor:pointer;
    }
    body{
        overflow-y: auto;
    }
</style>
{#<ul class="breadcrumb">#}
    {#<li><i class="fa fa-home fa-lg"></i> 主页</li>#}
    {#<li>导航管理</li>#}
    {#<li>添加导航</li>#}
{#</ul>#}
<div class="row">
    <div class="col-md-6">
        <div class="smart-widget">
            <div class="smart-widget-header">
                添加导航
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-body" style="padding-left: 20px;">
                    <form id="form_AddNode" class="XH-Form-Node" action="{{ url('Sys/addNavNode') }}" method="post">
                        <div class="form-inline">
                            <label for="">导航名称：</label>
                            <input id="sNodeName" name="sNodeName" type="text" class="form-control">
                        </div>
                        <div class="form-inline">
                            <label for="">导航缩写：</label>
                            <input name="sNodeShortName" type="text" class="form-control">
                        </div>
                        <div class="form-inline">
                            <label for="">导航图标：</label>
                            <input name="sNodeIcon" type="text" class="form-control">
                        </div>
                        <div class="form-inline">
                            <label for="">父节点：</label>
                            <input id="sParentNodeName" name="sParentNodeName" type="text" class="form-control" placeholder="右侧点击选择" readonly>
                            <a id="bt_ChooseNode" class="btn btn-default btn-sm">选择</a>
                            <a id="bt_ClearNode" class="btn btn-default btn-sm">清除</a>
                            <input id="iParentNodeId" name="iParentNodeId" type="text" style="display: none">
                        </div>
                        <div class="form-inline">
                            <label for="">左侧导航：</label>
                            <select name="iNodeType" class="form-control" style="width: 100px">
                                <option value="1">是</option>
                                <option value="3">否</option>
                            </select>
                        </div>
                        <div class="form-inline">
                            <label for="">URL：</label>
                            <input name="sFunctionUrl" type="text" class="form-control" style="width: 250px">
                        </div>
                        <div class="form-inline">
                            <label for="">Tatget：</label>
                            <input name="sFunctionAttr" type="text" class="form-control">
                        </div>
                        <input type="button" id="bt_AddNode" class="btn btn-success marginTB-xs disabled" value="添加导航" style="margin-left: 74px"/>
                        <input type="reset" class="btn btn-default marginTB-xs" value="重置"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="smart-widget">
            <div class="smart-widget-header">
                目前导航结构
                <i id="TreeViewDiv">（浏览）</i>
                <i id="TreeChooseDiv" style="display: none">（选择）</i>
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-body" id="NavsTreeDiv" style="padding-left: 20px;max-height: 700px;overflow-y: auto;">
                    {{ navTree }}
                </div>
            </div>
        </div>
    </div>
</div>
